<div id="chooseMaintainanceStandardItemModel" class="modal fade" role="dialog"
     aria-labelledby="chooseMaintainanceStandardItemModelLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="chooseMaintainanceStandardItemModelLabel">
                    <span><vc:i18n name="选择检查项" namespace="chooseMaintainanceStandardItem"></vc:i18n></span>
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <div class="row">
                                <div class="col-sm-5">
                                    <div class="input-group">
                                        <input :placeholder="vc.i18n('输入检查项','chooseMaintainanceStandardItem')"
                                               type="text" v-model.trim="chooseMaintainanceStandardItemInfo.itemTitle"
                                               class="form-control form-control-sm">
                                    </div>
                                </div>
                                <div class="col-sm-4">
                                    <div class="input-group">
                                        <button type="button" class="btn btn-sm btn-primary" v-on:click="queryItems()">
                                            <i class="fa fa-search"></i>
                                            <span>
                                                <vc:i18n name="查询" namespace="chooseMaintainanceStandardItem"></vc:i18n>
                                            </span>
                                        </button>
                                        <button type="button" class="btn btn-sm btn-primary"
                                                v-on:click="resetItems()" style="margin-left: 10px;">
                                            <i class="fa fa-repeat"></i>
                                            <span>
                                                <vc:i18n name="重置" namespace="chooseMaintainanceStandardItem"></vc:i18n>
                                            </span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            <div class="table-responsive" style="margin-top:15px">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <input type="checkbox" class="i-checks " @click="checkAll($event)"
                                                   id="quan">
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="编号" namespace="chooseMaintainanceStandardItem"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="检查项" namespace="chooseMaintainanceStandardItem">
                                                </vc:i18n>
                                            </span>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="item in chooseMaintainanceStandardItemInfo.items">
                                        <td class="text-center">
                                            <input type="checkbox" class="i-checks checkItem"
                                                   v-bind:value="item.itemId" @click="isCheckAll($event)"
                                                   v-model="chooseMaintainanceStandardItemInfo.selectItems">
                                        </td>
                                        <td class="text-center">{{item.itemId}}</td>
                                        <td class="text-center">{{item.itemTitle}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!-- 分页 -->
                                <vc:create namespace="chooseMaintainanceStandardItem" path="frame/paginationPlus">
                                </vc:create>
                                <div class="ibox-content" v-if="chooseMaintainanceStandardItemInfo.items.length > 0">
                                    <button class="btn btn-primary float-right" type="button"
                                            v-on:click="_chooseMaintainanceStandardItem()">
                                        <i class="fa fa-check"></i>&nbsp;提交
                                    </button>
                                    <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                            data-dismiss="modal">
                                        <i class="fa fa-times"></i>&nbsp;取消
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
